import axios from "axios"

// 注册
export let reqRegister = (user)=>{
    return axios({
        url:"/api/register",
        method:"post",
        data:user

    })
}
// 登录
export let reqLogin =(user) =>{
    return axios({ 
        url: "/api/login",
        method: "post",
        data:user
    })
}

// 首页分类、
export let reqHomeCates =()=>{
    return axios({
        url:"/api/getcate",
        method:"get"

    })
}